<%@page import="com.wanmait.movies.vo.Movie"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <h1>推荐电影</h1>
<%ArrayList<Movie> movies = (ArrayList<Movie>)request.getAttribute("moviesoftag");
  request.removeAttribute("moviesoftag");
  if(movies.size() != 0){
	  for(Movie m : movies){
			%>
			<div class="ssp"> 
	 			 <div class="onemovie">
	              <img src="/movies/images/<%=m.getMovieImage()%>"><br>
	              <a href="/movies/MoviesServlet?action=showovies&movieId=<%=m.getId()%>"><%=m.getMovieName() %></a>
	 			 </div>
			</div>
			<%
		}
  }else{
	  %>
	  	<a>无符合的查询结果</a>
	  <%
	  
  }	  
 %>